package com.jim.healio.tools;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;

public class UserTool {

    @Tool(name = "查询用户个人画像", description = "根据用户姓名查询用户个人画像")
    public String getUserPortrait(@ToolParam(description = "用户姓名（名称）") String userName) {
        return "姓名：Jim；性别：男；年龄：30；职业：程序员；生活习惯：经常久坐写代码。";
    }

    @Tool(name = "更新用户个人画像", description = "更新用户个人画像")
    public String updateUserPortrait(@ToolParam(description = "用户姓名（名称）") String userName,
                                     @ToolParam(description = "用户个人画像") String portrait) {
        return "更新成功";
    }


    @Tool(name = "查询用户日常记录", description = "根据用户姓名查询用户近几天的日常记录")
    public String getUserDailyRecord(@ToolParam(description = "用户姓名（名称）") String userName,
                                     @ToolParam(description = "查询天数") String days) {
        return "";
    }
}
